package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.common.util.KiteStringUtils;
import com.iwhalecloud.bss.kite.manager.api.IOperateSceneInstService;
import com.iwhalecloud.bss.kite.manager.api.IQuerySceneInstService;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.data.CustAttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @author zhoujiao
 * @create 2022-01-19-09:41
 */
public class SignetManagementPriceAttrHandler extends AbstractAttrHandler<KiteInst, CustAttrData> {
    @Autowired
    private IOperateSceneInstService operateSceneInstService;

    @Autowired
    IQuerySceneInstService querySceneInstService;

    @Override
    public void after(KiteAttr attr, KiteInst inst, CustAttrData data) {
        // 融和追加和产品变更销售价置灰
        if (KiteStringUtils.equalsAny(data.getServiceOfferId(), "2826","2024")) {
            attr.setIsEdit(KeyConsts.IFTRUE_F);
        }
        super.after(attr, inst, data);
    }
}

